<?php
require_once "common.php";
$req = new ItemAddRequest;
/*$req->setSkuSpecIds("123,123,1243");
$req->setSkuDeliveryTimes("123,123,1243");
$req->setSkuHdLength("20,30,30");
$req->setSkuHdHeight("15-25,25-50,25-50");
$req->setSkuHdLampQuantity("3,5,7");*/
/*$req->setInputStr("123123");
$req->setInputPids("12312312");*/
$req->setNum("30");
$req->setPrice("200.07");
$req->setType("fixed");
$req->setStuffStatus("new");
$req->setTitle("2017新款短裙夏韩版修身显瘦镂空蕾丝清新雪纺连衣裙裙子");
$req->setDesc("这是一个好商品");
$req->setLocationState("浙江");
$req->setLocationCity("杭州");
$req->setApproveStatus("onsale");
$req->setCid("50010850");
$req->setProps("122216347:1375048537");
/*$req->setFreightPayer("buyer");
$req->setValidThru("7");
$req->setHasInvoice("true");
$req->setHasWarranty("true");
$req->setAutoRepost("true");
$req->setHasShowcase("true");
$req->setSellerCids("1101,1102,1103");
$req->setHasDiscount("true");
$req->setPostFee("5.07");
$req->setExpressFee("15.07");
$req->setEmsFee("25.07");
$req->setListTime("2000-01-01 00:00:00");
$req->setIncrement("2.50");*/
//附件上传的机制参见PHP CURL文档，在文件路径前加@符号即可
//$req->setImage(@"http://www.daogou123.cn/wp-content/uploads/2017/05/%E5%8D%97%E4%BA%AC%E7%A8%8B%E5%BA%8F%E5%91%98%E7%94%A8%E4%BB%A3%E7%A0%81%E6%B1%82%E6%95%91%EF%BC%9A%E5%90%8C%E4%BA%8B%E7%A7%92%E6%87%82%EF%BC%8C13%E5%B0%8F%E6%97%B6%E6%88%90%E5%8A%9F%E8%A2%AB%E8%A7%A3%E6%95%91-2-300x200.jpg");
/*$req->setPostageId("775752");
$req->setAuctionPoint("5");
$req->setPropertyAlias("pid:vid:别名;pid1:vid1:别名1");
$req->setSkuProperties("pid:vid;pid:vid");
$req->setSkuQuantities("2,3,4");
$req->setSkuPrices("200.07");
$req->setSkuOuterIds("1234,1342");
$req->setLang("zh_CN");
$req->setOuterId("12345");
$req->setProductId("123456789");
$req->setPicPath("http://ceshi.j-fen.cn/public/upload/2017/04/26/1493211876.jpeg");
$req->setAutoFill("time_card");
$req->setIsTaobao("true");
$req->setIsEx("true");
$req->setIs3D("true");
$req->setSellPromise("true");
$req->setCodPostageId("53899");
$req->setIsLightningConsignment("true");
$req->setWeight("100");
$req->setShape("0");
$req->setIsXinpin("false");
$req->setSubStock("1");
$req->setFoodSecurityPrdLicenseNo("QS410006010388");
$req->setFoodSecurityDesignCode("Q/DHL.001-2008");
$req->setFoodSecurityFactory("远东恒天然乳品有限公司");
$req->setFoodSecurityFactorySite("台北市仁爱路4段85号");
$req->setFoodSecurityContact("00800-021216");
$req->setFoodSecurityMix("有机乳糖、有机植物油");
$req->setFoodSecurityPlanStorage("常温");
$req->setFoodSecurityPeriod("2年");
$req->setFoodSecurityFoodAdditive("磷脂 、膨松剂");
$req->setFoodSecuritySupplier("深圳岸通商贸有限公司");
$req->setFoodSecurityProductDateStart("2012-06-01");
$req->setFoodSecurityProductDateEnd("2012-06-10");
$req->setFoodSecurityStockDateStart("2012-06-20");
$req->setFoodSecurityStockDateEnd("2012-06-30");
$req->setScenicTicketPayWay("1");
$req->setScenicTicketBookCost("5.99");
$req->setItemSize("bulk:8");
$req->setItemWeight("10");
$req->setSellPoint("2013新款 时尚 前卫");
$req->setFoodSecurityHealthProductNo("卫食健字(1997)第167号");
$req->setBarcode("6903244981002");
$req->setSkuBarcode("6903244981002");
$req->setNewprepay("1");
$req->setQualification("string");
$req->setO2oBindService("true");
$req->setFeatures(";mysize_tp:12586;keyx:valuex;");
$req->setLocalityLifeObs("1");
$req->setLocalityLifeVersion("1");
$req->setLocalityLifePackageid("12344");
$req->setIgnorewarning(",ifd_warning,FakeCredit_Warning,");
$req->setMsPaymentReferencePrice("199");
$req->setMsPaymentVoucherPrice("50");
$req->setMsPaymentPrice("100");
$req->setAfterSaleId("12323");
$req->setDeliveryTimeNeedDeliveryTime("none");
$req->setDeliveryTimeDeliveryTimeType("relative");
$req->setDeliveryTimeDeliveryTime("3");
$req->setChangeProp("pid:vid:vid1,vid2,vid3;pid:vid:vid1,vid2");
$req->setDescModules("[{\"module_id\":123,\"module_name\":\"模特图\",\"type\":\"cat_mod\",\"content\":\"模特要漂亮一点拜托\"},{\"module_id\":null,\"module_name\":\"店主最漂亮\",\"type\":\"usr_mod\",\"content\":\"老娘全网最美\"}]");
$req->setIsOffline("1");
$req->setWirelessDesc("无线宝贝描述，亲");
$req->setSpuConfirm("false");
$req->setLocalityLifeChooseLogis("0");
$req->setLocalityLifeExpirydate("2012-08-06,2012-08-16");
$req->setLocalityLifeNetworkId("5645746");
$req->setLocalityLifeMerchant("56879:码商X");
$req->setLocalityLifeVerification("101");
$req->setLocalityLifeRefundRatio("50");
$req->setLocalityLifeOnsaleAutoRefundRatio("80");
$req->setLocalityLifeRefundmafee("b");
$req->setLocalityLifeEticket(";market:eticket;consume_way:4;");
$req->setPaimaiInfoMode("1");
$req->setPaimaiInfoDeposit("20");
$req->setPaimaiInfoInterval("5");
$req->setPaimaiInfoReserve("11");
$req->setPaimaiInfoValidHour("2");
$req->setPaimaiInfoValidMinute("22");
$req->setGlobalStockType("1");
$req->setGlobalStockCountry("美国");
$req->setSupportCustomMade("true");
$req->setCustomMadeTypeId("12");
$req->setGlobalStockDeliveryPlace("1");
$req->setGlobalStockTaxFreePromise("false");
$req->setChaoshiExtendsInfo("{\"mchaoshi_group\":\"个清洗护\"}");
$req->setInputCustomCpv("1627207:-1:渐变红;1627207:-2:宝石蓝");
$req->setCpvMemo("1627207:28341:颜色偏黑;1627207:3232483:颜色偏淡");*/
$resp = $c->execute($req, "6202926158f145133484e463c194d22572ZZ843d8fb7cf42804941164");
var_dump($resp);


